package com.leps.nq.op.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.leps.nq.op.entity.OpInspection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leps.nq.op.vo.InspectionQueryModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 巡检日志表 Mapper 接口
 * </p>
 *
 * @author hex
 * @since 2022-05-22
 */
@Mapper
public interface OpInspectionMapper extends BaseMapper<OpInspection> {

    /**
     * 分页查询巡检日志
     * @param page
     * @param queryModel
     * @return
     */
    Page<OpInspection> selectByQueryModel(@Param("page") Page<OpInspection> page, @Param("queryModel") InspectionQueryModel queryModel);

    int updateProperty(@Param("fieldName") String fieldName, @Param("value") Object value, @Param("whereFieldName") String whereFieldName, @Param("whereValue") Object whereValue);
}
